/**********************************************************
 * Groups.java.java 
 * Created by Ashutosh
 * Last modified Date: Sep 18, 2008 10:59:55 AM by Ashutosh
 * Revision: <svn revision #> 
 * Version : 0.1
 * Copyright (c) 2008 - 2009 cyberThink Infotech Pvt. Ltd., All rights reserved.
 **********************************************************/

package com.printeverywhere.dto;

import java.util.HashSet;
import java.util.Set;

/**
 * Groups entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Groups implements java.io.Serializable {

	// Fields

	/** The group id. */
	private int groupId;
	
	/** The name. */
	private String name;
	
	/** The total user. */
	private int totalUser;
	
	/** The groupusers. */
	private Set groupusers = new HashSet(0);

	// Constructors

	/**
	 * default constructor.
	 */
	public Groups() {
	}

	/**
	 * minimal constructor.
	 * 
	 * @param groupId the group id
	 */
	public Groups(int groupId) {
		this.groupId = groupId;
	}

	/**
	 * minimal constructor.
	 * 
	 * @param name the name
	 * @param totalUser the total user
	 */
	public Groups(String name, int totalUser) {
		this.name = name;
		this.totalUser = totalUser;
	}

	/**
	 * full constructor.
	 * 
	 * @param name the name
	 * @param totalUser the total user
	 * @param groupusers the groupusers
	 */
	public Groups(String name, int totalUser, Set groupusers) {
		this.name = name;
		this.totalUser = totalUser;
		this.groupusers = groupusers;
	}

	// Property accessors

	/**
	 * Gets the group id.
	 * 
	 * @return the group id
	 */
	public int getGroupId() {
		return this.groupId;
	}

	/**
	 * Sets the group id.
	 * 
	 * @param groupId the new group id
	 */
	public void setGroupId(int groupId) {
		this.groupId = groupId;
	}

	/**
	 * Gets the name.
	 * 
	 * @return the name
	 */
	public String getName() {
		return this.name;
	}

	/**
	 * Sets the name.
	 * 
	 * @param name the new name
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * Gets the total user.
	 * 
	 * @return the total user
	 */
	public int getTotalUser() {
		return this.totalUser;
	}

	/**
	 * Sets the total user.
	 * 
	 * @param totalUser the new total user
	 */
	public void setTotalUser(int totalUser) {
		this.totalUser = totalUser;
	}

	/**
	 * Gets the groupusers.
	 * 
	 * @return the groupusers
	 */
	public Set getGroupusers() {
		return this.groupusers;
	}

	/**
	 * Sets the groupusers.
	 * 
	 * @param groupusers the new groupusers
	 */
	public void setGroupusers(Set groupusers) {
		this.groupusers = groupusers;
	}
}